<script setup lang="ts">
import Message from '@/components/message/index'
const fn = () => {
  Message({ type: 'success', message: '修改成功', duration: 1000 })
  // Message.warning('失败了', 1000)
}
</script>
<template>
  <button @click="fn">按钮</button>
</template>



<style scoped>
</style>